﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StoreOnlineEntity.Entitys
{
    class OrderDetails
    {
        private long id;

        public long ID
        {
            get { return id; }
            set { id = value; }
        }

        private Product product;

        public Product Product
        {
            get { return product; }
            set { product = value; }
        }

        private int amount;

        public int Amount
        {
            get { return amount; }
            set { amount = value; }
        }

        private double price;

        public double Price
        {
            get { return this.Product.Price * this.Amount; }
            set { price = value; }
        }
    }
}
